home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 11
/
CU Amiga Magazine's Super CD-ROM 11 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-06].iso
/
s
/
boxcolors.pprx
< prev
next >
Wrap
Text File
|
1992-03-14
|
944b
|
36 lines
/*
@BBoxColors @P@ICopyright Gold Disk Inc. January, 1992
Set the text and fill colors of a box.
*/
address command
call SafeEndEdit.rexx()
call ppm_AutoUpdate(0)
oldcolor = ppm_GetTextColor()
box = ppm_ClickOnBox("Click on box for color change.")
if box = 0 then exit
colorlist = ppm_GetColorList()
colorlist = substr(colorlist, pos('0a'x, colorlist) + 1)
color = ppm_SelectFromList("Select Fill Color..", 20, 5, 0, colorlist)
if color = '' then exit
tcolor = ppm_SelectFromList("Select Text Color..", 20, 5, 0, colorlist)
if tcolor = '' then exit
call ppm_SetBoxFrameData(box,color, color, ppm_GetLineWeight(), ppm_GetLinePattern(), 1)
call ppm_SetBoxFrame(box, 1)
call ppm_SetBoxTransparent(box, 0)
if upper(word(ppm_GetBoxInfo(box), 1)) ~= TEXT then exit
call SafeSetEdit.rexx(box)
call ppm_SelectBoxText()
call ppm_SetTextColor(tcolor)
call SafeEndEdit.rexx()
call ppm_SetTextColor(oldcolor)
call ppm_AutoUpdate(1)